import play.Application;
import play.GlobalSettings;
import play.Logger;
import play.api.libs.concurrent.Promise;
import play.api.mvc.RequestHeader;
import play.mvc.Result;

/**
 * Created by wkhl on 2016/12/12.
 */
public class Global extends GlobalSettings {

    /*public void onStart(Application application){
        Logger.info("Application has startedstartedstartedstartedstartedstartedstartedstartedstartedstarted");
    }
    public void onStop(Application app) {
        Logger.info("Application shutdownshutdownshutdownshutdownshutdownshutdownshutdownshutdownshutdown...");
    }*/

   /* public Promise<Result> onError(RequestHeader request, Throwable t) {
        return Promise.<Result>pure(internalServerError(
                views.html.errorPage.render(t)
        ));
    }*/
   /*public Promise onError(RequestHeader reques, Throwable t){
       return Promise.<Result>pure(internalServerError(
          view.html.errorPage.render(t)
       ));
   }*/

}
